﻿using System.Web.Mvc;

namespace Quintsys.BootstrapSupport.HtmlHelpers
{
    public static class Markup
    {
        /// <summary>
        /// Inserts an HTML element to clear the float using Bootstrap's CSS.
        /// </summary>
        /// <param name="helper">The helper.</param>
        /// <returns></returns>
        public static MvcHtmlString ClearFloat(this HtmlHelper helper)
        {
            var html = new TagBuilder("div");
            html.MergeAttribute("class", "clearfix");
            return MvcHtmlString.Create(html.ToString(TagRenderMode.Normal));
        }
    }
}
